Add IFBench RLVR reward helpers#28
Open
nam157 wants to merge 2 commits into
Open
Conversation
Author
|
Small review note: this is a focused reward-function integration for the IF-RLVR/Bench bounty, reusing the existing IFBench verifiers rather than changing evaluator semantics. Validation run locally:
Happy to adjust the API shape if maintainers prefer a different trainer-facing entry point. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
reward_lib.pyfor scoring prompt/response pairs with the existing IFBench verifiersmake_reward_fn(...)helper for RLVR trainers plus structuredRewardResultoutput for debugging reward shapingrun_reward.pyas a reproducible local reward smoke runner over prompt/response jsonl filesWhy
The Algora IF-RLVR/Bench bounty calls out a train-oriented integration path for IFBench. The current repository has evaluation scripts, but no small reusable reward function that a training loop can call directly. This keeps the change lightweight by reusing the existing strict/loose verifier implementations and adding a CLI smoke path to prove dataset loading plus reward scoring end to end.
Context: Prime Intellect IF-RLVR/Bench Algora bounty: https://algora.io/PrimeIntellect-ai/bounties/dderbjHtPwTiGVY4
Validation
uv run pytest -q reward_lib_test.pyuv run pytest -quv run python -m run_reward --input_data=data/IFBench_test.jsonl --input_response_data=data/sample_output.jsonl --mode=loose --limit=5reward_lib.make_reward_fn(...)againstdata/IFBench_test.jsonl